
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.unicon.autoservicio.bean;

/**
 *
 * @author JMENDOZA | 20140122 | Proy. 817
 * @author JMENDOZA | 20140210 | Proy. 817
 */

import com.unicon.autoservicio.dao.PedidoDAO;
import com.unicon.sdc.ds.ws.TruckLocationBean;
import java.util.Date;



public class TruckLocationViewBean extends TruckLocationBean{

    private Date orderDateDate;
    
    public TruckLocationViewBean(){
    }
    
    public TruckLocationViewBean(TruckLocationBean parent){
        
        this.orderDate      = parent.getOrderDate();
        this.orderCode      = parent.getOrderCode();
        this.tktCode        = parent.getTktCode();
        this.truckCode      = parent.getTruckCode();
        this.mapLong        = parent.getMapLong();
        this.mapLat         = parent.getMapLat();
        this.longitud       = parent.getLongitud();
        this.latutud        = parent.getLatutud();
        this.descr          = parent.getDescr();
        this.licNum         = parent.getLicNum();
        this.mapUpdateDate  = parent.getMapUpdateDate();
        this.truckType      = parent.getTruckType();
        this.guia           = parent.getGuia();
        this.nuEtapa        = parent.getNuEtapa();
        this.deEtapa        = parent.getDeEtapa();  
        this.teo            = parent.getTeo();       
        this.deCamion       = parent.getDeCamion();    
        this.tipo           = parent.getTipo();      
    }

    /**
     * Get the value of orderDateDate
     *
     * @return the value of orderDateDate
     */
    public Date getOrderDateDate() {
        if (getOrderDate() != null) {
            orderDateDate = getOrderDate().toGregorianCalendar().getTime();
        }
        return orderDateDate;
    }

    /**
     * Set the value of orderDateDate
     *
     * @param orderDateDate new value of orderDateDate
     */
    public void setOrderDateDate(Date orderDateDate) {
        this.orderDateDate = orderDateDate;
    }


    

}
